//
//  XGWebViewController.h
//  BSBuDeJie
//
//  Created by monkey on 2018/12/16.
//  Copyright © 2018 itcast. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol XGWebViewControllerDelegate;

@interface XGWebViewController : UIViewController

/// 是否显示底部工具栏 默认为YES
@property (nonatomic,assign) BOOL isShowBottomToolbar;
/// 是否显示进度 默认为YES
@property (nonatomic,assign) BOOL isShowProgress;
/// 代理
@property (nonatomic,weak) id<XGWebViewControllerDelegate> delegate;

/**
 构造方法

 @param url 网页地址
 @return XGWebViewController
 */
- (instancetype)initWithURL:(NSURL *)url;
+ (instancetype)webViewControllerWithURL:(NSURL *)url;

@end

@protocol XGWebViewControllerDelegate <NSObject>

@optional

/**
 返回事件

 @param webViewController XGWebViewController
 */
- (void)webViewControllerGoBackAction:(XGWebViewController *)webViewController;

@end
